
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGBlendChunk.h>
#include <OpenSG/OSGBlendChunkBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_BlendChunk_dump_overloads_0_2, dump, 0, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_BlendChunk_activate_overloads_1_2, activate, 1, 2)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_BlendChunk_changeFrom_overloads_2_3, changeFrom, 2, 3)

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_BlendChunk_deactivate_overloads_1_2, deactivate, 1, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_BlendChunk()
{
    scope* osg_BlendChunkBase_scope = new scope(
    class_< osg::BlendChunkBase, bases< osg::StateChunk > , boost::noncopyable >("BlendChunkBase", no_init)
//        .def_readonly("SrcFactorFieldMask", &osg::BlendChunkBase::SrcFactorFieldMask)
//        .def_readonly("DestFactorFieldMask", &osg::BlendChunkBase::DestFactorFieldMask)
//        .def_readonly("EquationFieldMask", &osg::BlendChunkBase::EquationFieldMask)
//        .def_readonly("ColorFieldMask", &osg::BlendChunkBase::ColorFieldMask)
//        .def_readonly("AlphaFuncFieldMask", &osg::BlendChunkBase::AlphaFuncFieldMask)
//        .def_readonly("AlphaValueFieldMask", &osg::BlendChunkBase::AlphaValueFieldMask)
//        .def_readonly("AlphaSrcFactorFieldMask", &osg::BlendChunkBase::AlphaSrcFactorFieldMask)
//        .def_readonly("AlphaDestFactorFieldMask", &osg::BlendChunkBase::AlphaDestFactorFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::BlendChunkBase::MTInfluenceMask)
        .def("getClassType", &osg::BlendChunkBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::BlendChunkBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::BlendChunkBase::*)() )&osg::BlendChunkBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::BlendChunkBase::*)() const)&osg::BlendChunkBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::BlendChunkBase::getContainerSize)
        //.def("getSrcFactor", (GLenum& (osg::BlendChunkBase::*)() )&osg::BlendChunkBase::getSrcFactor, return_value_policy< copy_const_reference >())
        .def("getSrcFactor", (const GLenum& (osg::BlendChunkBase::*)() const)&osg::BlendChunkBase::getSrcFactor, return_value_policy< copy_const_reference >())
        //.def("getDestFactor", (GLenum& (osg::BlendChunkBase::*)() )&osg::BlendChunkBase::getDestFactor, return_value_policy< copy_const_reference >())
        .def("getDestFactor", (const GLenum& (osg::BlendChunkBase::*)() const)&osg::BlendChunkBase::getDestFactor, return_value_policy< copy_const_reference >())
        //.def("getEquation", (GLenum& (osg::BlendChunkBase::*)() )&osg::BlendChunkBase::getEquation, return_value_policy< copy_const_reference >())
        .def("getEquation", (const GLenum& (osg::BlendChunkBase::*)() const)&osg::BlendChunkBase::getEquation, return_value_policy< copy_const_reference >())
        //.def("getColor", (osg::Color4f& (osg::BlendChunkBase::*)() )&osg::BlendChunkBase::getColor, return_value_policy< copy_const_reference >())
        .def("getColor", (const osg::Color4f& (osg::BlendChunkBase::*)() const)&osg::BlendChunkBase::getColor, return_value_policy< copy_const_reference >())
        //.def("getAlphaFunc", (GLenum& (osg::BlendChunkBase::*)() )&osg::BlendChunkBase::getAlphaFunc, return_value_policy< copy_const_reference >())
        .def("getAlphaFunc", (const GLenum& (osg::BlendChunkBase::*)() const)&osg::BlendChunkBase::getAlphaFunc, return_value_policy< copy_const_reference >())
        //.def("getAlphaValue", (osg::Real32& (osg::BlendChunkBase::*)() )&osg::BlendChunkBase::getAlphaValue, return_value_policy< copy_const_reference >())
        .def("getAlphaValue", (const osg::Real32& (osg::BlendChunkBase::*)() const)&osg::BlendChunkBase::getAlphaValue, return_value_policy< copy_const_reference >())
        //.def("getAlphaSrcFactor", (GLenum& (osg::BlendChunkBase::*)() )&osg::BlendChunkBase::getAlphaSrcFactor, return_value_policy< copy_const_reference >())
        .def("getAlphaSrcFactor", (const GLenum& (osg::BlendChunkBase::*)() const)&osg::BlendChunkBase::getAlphaSrcFactor, return_value_policy< copy_const_reference >())
        //.def("getAlphaDestFactor", (GLenum& (osg::BlendChunkBase::*)() )&osg::BlendChunkBase::getAlphaDestFactor, return_value_policy< copy_const_reference >())
        .def("getAlphaDestFactor", (const GLenum& (osg::BlendChunkBase::*)() const)&osg::BlendChunkBase::getAlphaDestFactor, return_value_policy< copy_const_reference >())
        .def("setSrcFactor", &osg::BlendChunkBase::setSrcFactor)
        .def("setDestFactor", &osg::BlendChunkBase::setDestFactor)
        .def("setEquation", &osg::BlendChunkBase::setEquation)
        .def("setColor", &osg::BlendChunkBase::setColor)
        .def("setAlphaFunc", &osg::BlendChunkBase::setAlphaFunc)
        .def("setAlphaValue", &osg::BlendChunkBase::setAlphaValue)
        .def("setAlphaSrcFactor", &osg::BlendChunkBase::setAlphaSrcFactor)
        .def("setAlphaDestFactor", &osg::BlendChunkBase::setAlphaDestFactor)
        .def("getBinSize", &osg::BlendChunkBase::getBinSize)
        .def("copyToBin", &osg::BlendChunkBase::copyToBin)
        .def("copyFromBin", &osg::BlendChunkBase::copyFromBin)
        .def("create", &osg::BlendChunkBase::create)
        .def("createEmpty", &osg::BlendChunkBase::createEmpty)
        .def("shallowCopy", &osg::BlendChunkBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("AlphaValueFieldId") = (int)osg::BlendChunkBase::AlphaValueFieldId;
    scope().attr("AlphaFuncFieldId") = (int)osg::BlendChunkBase::AlphaFuncFieldId;
    scope().attr("AlphaSrcFactorFieldId") = (int)osg::BlendChunkBase::AlphaSrcFactorFieldId;
    scope().attr("DestFactorFieldId") = (int)osg::BlendChunkBase::DestFactorFieldId;
    scope().attr("AlphaDestFactorFieldId") = (int)osg::BlendChunkBase::AlphaDestFactorFieldId;
    scope().attr("SrcFactorFieldId") = (int)osg::BlendChunkBase::SrcFactorFieldId;
    scope().attr("NextFieldId") = (int)osg::BlendChunkBase::NextFieldId;
    scope().attr("ColorFieldId") = (int)osg::BlendChunkBase::ColorFieldId;
    scope().attr("EquationFieldId") = (int)osg::BlendChunkBase::EquationFieldId;

    delete osg_BlendChunkBase_scope;

    class_< osg::BlendChunk, bases< osg::BlendChunkBase > , boost::noncopyable, osg::BlendChunkRefPtr >("BlendChunk", no_init)
        .def("getStaticClassId", &osg::BlendChunk::getStaticClassId)
        .def("changed", &osg::BlendChunk::changed)
        .def("dump", &osg::BlendChunk::dump, osg_BlendChunk_dump_overloads_0_2())
        .def("activate", &osg::BlendChunk::activate, osg_BlendChunk_activate_overloads_1_2())
        .def("changeFrom", &osg::BlendChunk::changeFrom, osg_BlendChunk_changeFrom_overloads_2_3())
        .def("deactivate", &osg::BlendChunk::deactivate, osg_BlendChunk_deactivate_overloads_1_2())
        .def("isTransparent", &osg::BlendChunk::isTransparent)
        //.def("switchCost", &osg::BlendChunk::switchCost)
        .staticmethod("getStaticClassId")
        //.def( self < other< osg::StateChunk >() )
        //.def( self == other< osg::StateChunk >() )
        //.def( self != other< osg::StateChunk >() )
    ;


    register_ptr_to_python<osg::BlendChunkPtr>();
    implicitly_convertible<osg::BlendChunkRefPtr, osg::BlendChunkPtr>();
    implicitly_convertible<osg::BlendChunkPtr, osg::StateChunkPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::BlendChunkPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::BlendChunkPtr>);
}

